package com.sc.nft.admin.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.annotation.Dict;
import com.sc.nft.annotation.DictValue;
import com.sc.nft.entity.Role;
import com.sc.nft.enums.SexEnums;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class SysMemberVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("登陆账号")
    private String userAccount;

    @ApiModelProperty("用户姓名")
    private String userName;

    @ApiModelProperty("用户性别")
    @Dict(enumType = SexEnums.class)
    private Integer userSex;

    @ApiModelProperty("用户性别描述")
    @DictValue
    private String userSexTxt;

    @ApiModelProperty("出生年月日")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userBirthday;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("角色Id")
    @Dict(tableType = Role.class,seqNo = 1)
    private Long roleId;

    @ApiModelProperty("角色描述")
    @DictValue(seqNo = 1)
    private String roleName;

}